package com.BlogPark.pojo;

import lombok.Data;
import org.springframework.stereotype.Repository;

/**
 * @Auther: MFM
 * @Date: 2022/8/16 - 08 - 16 - 0:35
 * @version: 1.0
 */

@Data
@Repository
public class Comment {
    private String commentsId;
    private Integer userId;
    private String userName;
    private String content;
    private String headTo;
    private Integer likes;

    public Comment() {
    }

    /**
     * 评论
     *
     * @param commentsId 评论id
     * @param userId     评论者id
     * @param userName   评论者姓名
     * @param content    评论内容
     * @param headTo     评论指向
     * @param likes      点赞数
     */
    public Comment(String commentsId, Integer userId, String userName, String content, String headTo, Integer likes) {
        this.commentsId = commentsId;
        this.userId = userId;
        this.userName = userName;
        this.content = content;
        this.headTo = headTo;
        this.likes = likes;
    }
}
